package com.hushao.lims.weblims.repository;

import com.hushao.lims.weblims.domain.ConsumableInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.math.BigDecimal;

/**
 * @author 930588706
 * @date 18/1/18
 * 耗材
 */
public interface ConsumableRepository extends JpaRepository<ConsumableInfo,Long> {
    /**
     * 根据耗材名称，耗材规格，耗材价格查询耗材信息
     * @param consumableName
     * @param consumableSpecifications
     * @param ConsumablePrice
     * @return
     */
    ConsumableInfo findByConsumableNameAndConsumableSpecificationsAndConsumablePrice(String consumableName, String consumableSpecifications, BigDecimal ConsumablePrice);
}
